package com.codi.bus.core.dao;

import com.codi.base.dao.v2.GeneratedBaseDao;
import com.codi.bus.core.domain.OrganBank;

import java.util.List;

/**
 * 机构银行卡
 *
 * @author xm
 * @date 2018-05-09 14:26
 */
public interface OrganBankDao extends GeneratedBaseDao<OrganBank> {
    List<OrganBank> selectByTradeAccount(String tradeAccount);
    /**
     * 获取有效的机构银行卡
     *
     * @param profileId
     * @return
     */
    List<OrganBank> selectUsableByProfileId(Long profileId);

    OrganBank getByProfileIdAndBankNo(Long profileId, String bankNo);

    List<OrganBank> getAll(String profileName, String state, Integer pageIndex, Integer pageSize);

    int insertOne(OrganBank organBank);

    List<OrganBank> selectAllListByProfileId(Long profileId);
}
